# from db.mysql_conn import MysqlUtils, config, sqlStr
#
#
# mysql = MysqlUtils(config)
# sqlParam = ["ffgrty∂∂", "222", "33","444","55","66","77","88"]
#
# table_name = 'best'
# d = {'name': 'kora', 'img': 990}   # 更新的字段及对应值
# t = ('id', 13)  # 更新所需条件
#
# sqlStr = 'UPDATE %s SET ' % table_name + ','.join(['%s=%r' % (k, d[k]) for k in d]) + ',updateTime = NOW() WHERE %s=%r;' % (t[0], t[1])
# print(sqlStr)
#
# mysql.update(sqlStr)

# -*- coding: utf-8 -*-
import re
import requests  # 导入requests
from bs4 import BeautifulSoup  # 从bs4中导入BeautifulSoup
import random  # 取随机数
from bs4 import BeautifulSoup
from lxml.html import etree
# from config.conf import user_agent_list, proxies_list, user
# url = 'http://www.xiladaili.com/api/?uuid=cf9aaffe22034f65863d536e81c3aba7&num=100&place=中国&protocol=1&sortby=0&repeat=1&format=3&position=1'
# proxies = {'http': proxies_list[random.randint(0, 1)]}
#
# response = requests.get(url)
# print(response.text.split(' '))
# print(len(response.text.split(' ')))
# try:
#     rankstr = tree.xpath('//li[@id="SalesRank"]/text()')[1].split('in')
#     ranking = rankstr[0].split('#')[1].strip().replace(',', '')
#     rankingtype = rankstr[1].split('(')[0].strip()
# except:
#     ranking = 0
#     rankingtype = ''
# if ranking == 0:
#     try:
#         htmlstr = response.content.decode('utf-8')
#         restr = re.compile("<span>#(.*) \(<a href='/gp/b")
#         rankarr = restr.findall(htmlstr)[0].split(' in ')
#         ranking = rankarr[0].replace(',', '')
#         rankingtype = rankarr[1]
#     except:
#         ranking = 0
#         rankingtype = ''
# if ranking == 0:
#     try:
#         htmlstr = response.content.decode('utf-8')
#         restr = re.compile('#(.*)\(<a href="/gp/bests')
#         rankarr = restr.findall(htmlstr)[0].split(' in ')
#         ranking = rankarr[0].replace(',', '')
#         rankingtype = rankarr[1]
#     except:
#         ranking = 0
# get_goods_num = 6000
# print(get_goods_num % 3000)
# if get_goods_num % 3000 == 0:
#     print(9)
Paperback = 'w'
PaperbackLink = ''

if Paperback != '' or PaperbackLink != '':
    print(34)
